Add nullboot.conf support with a kernel-priority field - #166
Open
julian-klode wants to merge 2 commits into
Open
Add nullboot.conf support with a kernel-priority field#166julian-klode wants to merge 2 commits into
julian-klode wants to merge 2 commits into
Conversation
Contributor
Author
|
Maybe we need to have
and
|
julian-klode
force-pushed
the
flavour-order
branch
from
September 9, 2026 16:44
bd942ae to
1f8e8fb
Compare
Implement nullboot.conf and nullboot.conf.d - yaml files. At this point parse only kernel-priority (similar to GRUB_FLAVOUR_ORDER in grub). Assisted-by: LLM
Wrap version.Version in a WeightedVersion that carries a priority computed from the kernel-priority configuration. Kernels with higher priority sort first; equal priorities fall back to version order. Assisted-by: LLM
julian-klode
force-pushed
the
flavour-order
branch
from
September 9, 2026 16:48
1f8e8fb to
82ad415
Compare
Contributor
Author
|
We now have with unspecified suffixes defaulting to 0. I think this is a bit more cleaner, and the dict merges naturally. This is overkill, a single preference would also get the job done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Field is using the same spelling as the grub one.
This allows preferring certain kernel flavours over others.
Not sure if the drop-ins appending flavour order is sensible, probably they should just override instead as it is a bit confusing coming from other configurations.